package state;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/13 14:09
 * @Description: 实现了 State 接口的实体状态类
 */
public class StartState implements State {
    /**
     * 状态改变方法
     *
     * @param context 带有某个状态的类
     */
    @Override
    public void doAction(Context context) {
        System.out.println("Player is in start state");
        context.setState(this);
    }

    @Override
    public String toString() {
        return "Start State";
    }
}
